package com.huluobo.a2202mvvm_im_douyindemo.db;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

import com.huluobo.a2202mvvm_im_douyindemo.bean.VideoListBeanResult;

import java.util.List;

/**
 * Created by LC on 2024/5/9.
 */
@Dao
public interface VideoDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insertVideoInfo(VideoListBeanResult.VideoListBean videoListBean);

    @Delete
    void deleteVideoInfo(VideoListBeanResult.VideoListBean videoListBean);

    @Update
    void updateVideoInfo(VideoListBeanResult.VideoListBean videoListBean);

    @Query("select * from video_info")
    List<VideoListBeanResult.VideoListBean> queryVideoInfo();
}
